package com.yxy.entity;

import java.util.Date;

public class User {
    private Integer id;

    private String username;

    private String password;

    private String nickname;

    private String email;

    private String phone;

    private Integer sex;

    private Integer role;

    private String loginIp;

    private Integer status;

    private Integer delFlag;

    private Date createTime;

    private Date updateTime;

    private String createBy;

    private String updateBy;

    private String yxyUserExtend1;

    private String yxyUserExtend2;

    private String userFace;

    //验证码
    private String code;

    public User(Integer id, String username, String password, String nickname, String email, String phone, Integer sex, Integer role, String loginIp, Integer status, Integer delFlag, Date createTime, Date updateTime, String createBy, String updateBy, String yxyUserExtend1, String yxyUserExtend2,String userFace) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.email = email;
        this.phone = phone;
        this.sex = sex;
        this.role = role;
        this.loginIp = loginIp;
        this.status = status;
        this.delFlag = delFlag;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.createBy = createBy;
        this.updateBy = updateBy;
        this.yxyUserExtend1 = yxyUserExtend1;
        this.yxyUserExtend2 = yxyUserExtend2;
        this.userFace = userFace;
    }

    public String getUserFace() {
        return userFace;
    }

    public void setUserFace(String userFace) {
        this.userFace = userFace;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public User() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp == null ? null : loginIp.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    public String getYxyUserExtend1() {
        return yxyUserExtend1;
    }

    public void setYxyUserExtend1(String yxyUserExtend1) {
        this.yxyUserExtend1 = yxyUserExtend1 == null ? null : yxyUserExtend1.trim();
    }

    public String getYxyUserExtend2() {
        return yxyUserExtend2;
    }

    public void setYxyUserExtend2(String yxyUserExtend2) {
        this.yxyUserExtend2 = yxyUserExtend2 == null ? null : yxyUserExtend2.trim();
    }
}